import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_bmflocation/flutter_bmflocation_method_channel.dart';
import 'package:flutter_bmflocation/flutter_bmflocation_platform_interface.dart';
void main() {
  const MethodChannel channel = MethodChannel('bdmap_location_flutter_plugin');

  TestWidgetsFlutterBinding.ensureInitialized();
  final FlutterBmflocationPlatform initialPlatform = FlutterBmflocationPlatform.instance;
  test('$MethodChannelFlutterBmflocation is the default instance', () {
    expect(initialPlatform, isInstanceOf<MethodChannelFlutterBmflocation>());
  });
  
  setUp(() {
    channel.setMockMethodCallHandler((MethodCall methodCall) async {
      return '42';
    });
  });

  tearDown(() {
    channel.setMockMethodCallHandler(null);
  });
}
